<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php 
	$username = $this->input->get('username',TRUE);
	$sid = $this->input->get('sid',TRUE);
	
	$USER = $this->user_entity->init('username',$username);
	if( md5($USER->getId()) != $sid){
		show_404();
		exit();
	}
	$USER->setStatus('activated');
	$USER->update();
?>

<div id="center_content">
	<div class="clrboth"></div>
	<div class="block">
		<div class="title"><h3 class="bold">User Registration</h3></div>
		<div class="clrboth"></div>
		<div class="content">
			<div class="rowitem3">
				Thank you for joinning to Clicxa. Your registration process is finished.
			</div>
		</div>
	</div>
	<div class="clrboth"></div>	
</div>	